//
//  OAuthViewController.swift
//  Weibo
//
//  Created by rmjycbs  on 16/1/13.
//  Copyright © 2016年 rmjycbs . All rights reserved.
//

import UIKit
import SVProgressHUD
import AFNetworking
class OAuthViewController: UIViewController {

    let webView = UIWebView()
    //MARK:关闭页面
    @objc private func close(){
        dismissViewControllerAnimated(true, completion: nil)
    }
    
    
    
    override func loadView() {
        //将跟视图设置为webView
         view = webView
        //设置代理
//        webView.delegate = self
    }
    override func viewDidLoad() {
        super.viewDidLoad()
       //设置导航条
        setNavBar()
        
    }
 private func setNavBar(){
        self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: "关闭", style: .Plain, target: self, action: "close")
    self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "测试账号", style: .Plain, target: self, action: "defaultAccount")
    }
    
    //测试账号 
    
  @objc private func defaultAccount(){
        
    }
    

}
